package com.aliyun.messagemgt.application.service.excel;

import com.aliyun.messagemgt.application.service.BaseReceiveGroupService;
import com.aliyun.messagemgt.dto.excel.BaseMessageSourceExcel;
import com.aliyun.messagemgt.dto.excel.MessageTemplateExcel;
import com.aliyun.messagemgt.repository.mappers.ExcelExcutorMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OutputExcelServiceImpl implements OutputExcelService{

    @Autowired
    private ExcelExcutorMapper excelExcutorMapper;

    @Autowired
    private BaseReceiveGroupService baseReceiveGroupService;

    @Override
    public List<MessageTemplateExcel> outputMessageTemplateExcel(String param) {
        return excelExcutorMapper.outputMessageTemplateExcel(param);
    }

    @Override
    public List<BaseMessageSourceExcel> outputBaseMessageSourceExcel(String param) {
        return excelExcutorMapper.outputBaseMessageSourceExcel(param);
    }
}
